package com.zgkxzx.myfix;

import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = MainActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = (TextView) findViewById(R.id.sample_text);
        tv.setText("zgjkxzx");



        int sub = sub(1, 0);

        Log.d(TAG, "结果数据hi" + sub);
    }


    private int sub(int a, int b) {
//        if (b == 0)
//            return 0;
        return a / b;
    }


}
